<style>
    a{
        cursor: pointer;
    }
    table tr > th, table tr > td {
        text-align: center;
        vertical-align: middle !important;
    }
</style>
<table class="table table-hover" >
    <tbody>
    <tr class="info">
        <th>序号</th>
        <th>教师名称</th>
        <th>布置次数(标准次数:{{ standard }})</th>
    </tr>
    {% if data is defined %}
        {% for i,item in data %}
            <tr >
                <td>{{ item['userId'] }}</td>
                <td>{{ item['userName'] }}</td>
                {% if item['fixNum'] >= standard  %}
                        <td style="color: green">{{ item['fixNum'] }}</td>
                    {% else %}
                        <td style="color: red">{{ item['fixNum'] }}</td>
                {% endif %}
            </tr>
        {% endfor %}
    {% endif %}
    </tbody>
</table>